# To change this template, choose Tools | Templates
# and open the template in the editor.

__author__="jonathan"
__date__ ="$16-May-2010 17:39:23$"

class DebugView(object):
    """Simple view which outputs all events to stdout"""

    def __init__(self, debug):
        self.debug = debug

    def receive(self, event, ev_manager):
        if self.debug:
            sys.stdout.write(str(event) + "\n")
            sys.stdout.flush()
